Terraformで差分を無視する場合は licecycle ignore_changesで宣言
Terraformで差分を無視したい設定値の場合は、lifecycle ignore_changes に入れておけば、差分を無視する code:sample.tf
resource "aws_instance" "example" {
# ...
lifecycle {
ignore_changes = [
# Ignore changes to tags, e.g. because a management agent
# updates these based on some ruleset managed elsewhere.
tags,
]
}
}